<h1>Editing message</h1>

<%= error_messages_for :message %>

<% form_for(:message, :url => message_path(@message), :html => { :method => :put }) do |f| %>
  <p>
    <%= submit_tag "Update" %>
  </p>
<% end %>

<%= link_to 'Show', message_path(@message) %> |
<%= link_to 'Back', messages_path %>